package cn.com.headfree.base.config;

import org.springframework.context.annotation.Configuration;

@Configuration 
public class ControllerConfig {

	/**
	 * 注册过滤器，验证用户登录
	 * @return
	 */
//	@Bean
//    public FilterRegistrationBean filterRegistrationBean(){
//        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
//
//        LoginFilter loginFilter = new LoginFilter();   //new过滤器
//        filterRegistrationBean.setFilter(loginFilter);       //set
//
//        return filterRegistrationBean;
//    }
	
}
